

flag1=[]
with open("sql_http.pcapng","rb") as f:
    for i in f.readlines():
        #print(i)
        if b"ctf.flag" in i:
            flag1.append(i.strip())
# print(flag1)
import re
flag2={}
for i in flag1:
    f1 = re.search(rb"from\((\d+)\)for\(1\)\)\)\)when\((\d+)\)then", i).group(1)
    f2 = re.search(rb"from\((\d+)\)for\(1\)\)\)\)when\((\d+)\)then", i).group(2)
    flag2[f1] = int(f2)

print(flag2)
flag=""
for i in flag2:
    flag+=chr(flag2[i])
print(flag)